XOR

Syntax: condition1 XOR condition2
Location: QL ROM

This combination operator combines two condition tests together and will have the value 0 if both condition1 and condition2 are true or both are false or 1 if either condition1 or condition2 are true (but not both).

Please note the difference between this and the bitwise XOR operator: x^^y, which compares x and y bit by bit.

Example:
PRINT 2 XOR 10    Returns 0.
Compare PRINT 2^^10 which returns 8.

CROSS-REFERENCE:
AND, OR and NOT are the other combination operators.
